package com.bootdo.shop.service;

import java.util.List;

import com.bootdo.shop.domain.request.ShoppingCartReq;
import com.bootdo.shop.domain.response.ShoppingCartRes;

public interface ShoppingCartService {
	/**
	 * 添加购物车
	 * @param shoppingCartReq
	 */
	public ShoppingCartReq addShoppingCart(ShoppingCartReq shoppingCartReq);
	/**
	 * 删除购物车
	 * @param shoppingCartReq
	 */
	public void deleteShoppingCart(ShoppingCartReq shoppingCartReq);
	/**
	 * 更新购物车
	 * @param shoppingCartReq
	 */
	public void updateShoppingCart(Long userId,ShoppingCartReq[] shoppingCartReq);
	
	/**
	 * 购物车数量
	 * @return
	 */
	public Integer getShoppingCartNum(ShoppingCartReq shoppingCartReq);
	/**
	 * 购物车列表
	 * @param shoppingCartReq
	 * @return
	 */
	public List<ShoppingCartRes> getShoppingCartList(ShoppingCartReq shoppingCartReq);
	
}
